package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;


/**
 * 自定义表查询明细列;
 * @author : miyu
 * @date : 2023-7-23
 */
@ApiModel(value = "自定义表查询明细列",description = "")
@Data
@Entity
@Table(name="sys_table_detail")
@TableComment("自定义表查询明细列")
public class SysTableDetail implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @TableGenerator(name="id_gen",  table="sys_id_generator", pkColumnName="table_name", pkColumnValue="sys_table_detail", valueColumnName="id_value", initialValue=1, allocationSize=1)
    @GeneratedValue(strategy=GenerationType.TABLE, generator="id_gen")

    @ApiModelProperty(value="主键",notes = "")
    @ColumnComment("主键")
    @Column(name = "detail_id", nullable = false,length=11 )
    private Integer detailId ;
    /** 主表 */
    @ApiModelProperty(value="主表",notes = "")
    @ColumnComment("主表")
    @Column(name = "table_id", nullable = true,length=11 )
    private Integer tableId ;
    /** 表对应字段 */
    @ApiModelProperty(value="表对应字段",notes = "")
    @ColumnComment("表对应字段")
    @Column(name = "item_field", nullable = true,length=50 )
    private String itemField ;
    /** 表头显示 */
    @ApiModelProperty(value="表头显示",notes = "")
    @ColumnComment("表头显示")
    @Column(name = "title_show", nullable = true,length=50 )
    private String titleShow ;
    /** 字段类型 */
    @ApiModelProperty(value="字段类型",notes = "")
    @ColumnComment("字段类型")
    @Column(name = "item_type", nullable = true,length=20 )
    private String itemType ;
    /** 数据格式 */
    @ApiModelProperty(value="数据格式",notes = "")
    @ColumnComment("数据格式")
    @Column(name = "format", nullable = true,length=100 )
    private String format ;
    /** 是否显示 */
    @ApiModelProperty(value="是否显示",notes = "")
    @ColumnComment("是否显示")
    @Column(name = "is_show", nullable = true,length=1 )
    private String isShow ;
    /** 排序 */
    @ApiModelProperty(value="排序",notes = "")
    @ColumnComment("排序")
    @Column(name = "order_num", nullable = true,length=11 )
    private Integer orderNum ;
}